/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package grex.WekaModels;

import grex.WekaModels.WekaPredictiveModel;
import grex.Data.ArffTableModel;
import weka.classifiers.meta.Bagging;
import weka.classifiers.trees.J48;
import weka.core.Instance;
import weka.core.Instances;

/**
 *
 * @author RIK
 */
public class GrexJ48 extends WekaPredictiveModel {
    public J48 j48;
    public GrexJ48(ArffTableModel data){
        super(data, new J48());
        j48 = (J48)model;
        j48.setBinarySplits(true);
        j48.setUnpruned(true);
        j48.setUseLaplace(true);       
    }
    
    public double getNrOfNodes() {

        return j48.measureTreeSize();
    }

    public String getName() {
        return "J48";
    }
    
}
